package com.bf.electroplating.pojo.dto.examiningreport;

import com.bf.electroplating.pojo.vo.attachment.AttachmentVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@Schema ( description = "自行检测报告DTO" )
public class ComExaminingReportDTO {

	@Schema ( description = "ID" )
	private String id;

	@Schema ( description = "园区ID" )
	private String parkId;

	@Schema ( description = "企业ID" )
	@NotBlank ( message = "企业不能为空" )
	private String companyId;

	@Schema ( description = "企业名称" )
	private String companyName;

	@Schema ( description = "报告类型" )
	@NotBlank ( message = "报告类型不能为空" )
	private String reportType;

	@Schema ( description = "报告名称" )
	@NotBlank ( message = "报告名称不能为空" )
	private String reportName;

	@Schema ( description = "报告时间" )
	@NotNull ( message = "报告时间不能为空" )
	@JsonFormat ( pattern = "yyyy-MM-dd" )
	private Date reportTime;

	@Schema ( description = "附件" )
	private List < AttachmentVo > attachments;

}
